package com.hubt.model;

import java.io.Serializable;

public class PtMenuDirectory implements Serializable {
    private String menuId;

    private String dirCode;

    private String dirName;

    private Integer dirLevelNumber;

    private String dirType;

    private String resourceId;

    private String parentId;

    private String isitem;

    private Integer dirOrder;

    private String status;

    private String flag;

    private String menuGroupId;

    private String locale;

    private String resUuid;

    private String realid;

    private String istransfer;

    private String menuType;

    private static final long serialVersionUID = 1L;

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId == null ? null : menuId.trim();
    }

    public String getDirCode() {
        return dirCode;
    }

    public void setDirCode(String dirCode) {
        this.dirCode = dirCode == null ? null : dirCode.trim();
    }

    public String getDirName() {
        return dirName;
    }

    public void setDirName(String dirName) {
        this.dirName = dirName == null ? null : dirName.trim();
    }

    public Integer getDirLevelNumber() {
        return dirLevelNumber;
    }

    public void setDirLevelNumber(Integer dirLevelNumber) {
        this.dirLevelNumber = dirLevelNumber;
    }

    public String getDirType() {
        return dirType;
    }

    public void setDirType(String dirType) {
        this.dirType = dirType == null ? null : dirType.trim();
    }

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId == null ? null : resourceId.trim();
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId == null ? null : parentId.trim();
    }

    public String getIsitem() {
        return isitem;
    }

    public void setIsitem(String isitem) {
        this.isitem = isitem == null ? null : isitem.trim();
    }

    public Integer getDirOrder() {
        return dirOrder;
    }

    public void setDirOrder(Integer dirOrder) {
        this.dirOrder = dirOrder;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag == null ? null : flag.trim();
    }

    public String getMenuGroupId() {
        return menuGroupId;
    }

    public void setMenuGroupId(String menuGroupId) {
        this.menuGroupId = menuGroupId == null ? null : menuGroupId.trim();
    }

    public String getLocale() {
        return locale;
    }

    public void setLocale(String locale) {
        this.locale = locale == null ? null : locale.trim();
    }

    public String getResUuid() {
        return resUuid;
    }

    public void setResUuid(String resUuid) {
        this.resUuid = resUuid == null ? null : resUuid.trim();
    }

    public String getRealid() {
        return realid;
    }

    public void setRealid(String realid) {
        this.realid = realid == null ? null : realid.trim();
    }

    public String getIstransfer() {
        return istransfer;
    }

    public void setIstransfer(String istransfer) {
        this.istransfer = istransfer == null ? null : istransfer.trim();
    }

    public String getMenuType() {
        return menuType;
    }

    public void setMenuType(String menuType) {
        this.menuType = menuType == null ? null : menuType.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PtMenuDirectory other = (PtMenuDirectory) that;
        return (this.getMenuId() == null ? other.getMenuId() == null : this.getMenuId().equals(other.getMenuId()))
            && (this.getDirCode() == null ? other.getDirCode() == null : this.getDirCode().equals(other.getDirCode()))
            && (this.getDirName() == null ? other.getDirName() == null : this.getDirName().equals(other.getDirName()))
            && (this.getDirLevelNumber() == null ? other.getDirLevelNumber() == null : this.getDirLevelNumber().equals(other.getDirLevelNumber()))
            && (this.getDirType() == null ? other.getDirType() == null : this.getDirType().equals(other.getDirType()))
            && (this.getResourceId() == null ? other.getResourceId() == null : this.getResourceId().equals(other.getResourceId()))
            && (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
            && (this.getIsitem() == null ? other.getIsitem() == null : this.getIsitem().equals(other.getIsitem()))
            && (this.getDirOrder() == null ? other.getDirOrder() == null : this.getDirOrder().equals(other.getDirOrder()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getFlag() == null ? other.getFlag() == null : this.getFlag().equals(other.getFlag()))
            && (this.getMenuGroupId() == null ? other.getMenuGroupId() == null : this.getMenuGroupId().equals(other.getMenuGroupId()))
            && (this.getLocale() == null ? other.getLocale() == null : this.getLocale().equals(other.getLocale()))
            && (this.getResUuid() == null ? other.getResUuid() == null : this.getResUuid().equals(other.getResUuid()))
            && (this.getRealid() == null ? other.getRealid() == null : this.getRealid().equals(other.getRealid()))
            && (this.getIstransfer() == null ? other.getIstransfer() == null : this.getIstransfer().equals(other.getIstransfer()))
            && (this.getMenuType() == null ? other.getMenuType() == null : this.getMenuType().equals(other.getMenuType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMenuId() == null) ? 0 : getMenuId().hashCode());
        result = prime * result + ((getDirCode() == null) ? 0 : getDirCode().hashCode());
        result = prime * result + ((getDirName() == null) ? 0 : getDirName().hashCode());
        result = prime * result + ((getDirLevelNumber() == null) ? 0 : getDirLevelNumber().hashCode());
        result = prime * result + ((getDirType() == null) ? 0 : getDirType().hashCode());
        result = prime * result + ((getResourceId() == null) ? 0 : getResourceId().hashCode());
        result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
        result = prime * result + ((getIsitem() == null) ? 0 : getIsitem().hashCode());
        result = prime * result + ((getDirOrder() == null) ? 0 : getDirOrder().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getFlag() == null) ? 0 : getFlag().hashCode());
        result = prime * result + ((getMenuGroupId() == null) ? 0 : getMenuGroupId().hashCode());
        result = prime * result + ((getLocale() == null) ? 0 : getLocale().hashCode());
        result = prime * result + ((getResUuid() == null) ? 0 : getResUuid().hashCode());
        result = prime * result + ((getRealid() == null) ? 0 : getRealid().hashCode());
        result = prime * result + ((getIstransfer() == null) ? 0 : getIstransfer().hashCode());
        result = prime * result + ((getMenuType() == null) ? 0 : getMenuType().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", menuId=").append(menuId);
        sb.append(", dirCode=").append(dirCode);
        sb.append(", dirName=").append(dirName);
        sb.append(", dirLevelNumber=").append(dirLevelNumber);
        sb.append(", dirType=").append(dirType);
        sb.append(", resourceId=").append(resourceId);
        sb.append(", parentId=").append(parentId);
        sb.append(", isitem=").append(isitem);
        sb.append(", dirOrder=").append(dirOrder);
        sb.append(", status=").append(status);
        sb.append(", flag=").append(flag);
        sb.append(", menuGroupId=").append(menuGroupId);
        sb.append(", locale=").append(locale);
        sb.append(", resUuid=").append(resUuid);
        sb.append(", realid=").append(realid);
        sb.append(", istransfer=").append(istransfer);
        sb.append(", menuType=").append(menuType);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}